<?php

class sfWidgetFormReadonly extends sfWidgetForm
{
  protected function configure($options = array(), $attributes = array())
  {
    parent::configure($options, $attributes);

    $this->addOption('value', 'N/A');
  }
  
  public function render($name, $value = null, $attributes = array(), $errors = array())
  {
    return $this->getOption('value');
  }
}
